package entity;

public class MetaData implements Comparable<MetaData>{
	protected String id;
	protected String name;
	protected String decryptedname;
	protected long createTime;
	protected long lastModifiedTime;
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return this.id;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
	public long getCreateTime() {
		return this.createTime;
	}
	
	public void setLastModifiedTime(long lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}
	
	public long getLastModifedTime() {
		return this.lastModifiedTime;
	}
	
	public void setDecryptedName(String dname) {
		this.decryptedname = dname;
	}
	
	public String getDecryptedName() {
		return decryptedname; 
	}

	@Override
	public int compareTo(MetaData o) {		
		return this.decryptedname.compareToIgnoreCase(o.decryptedname);
	}
}
